body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;

  background-image: linear-gradient(
      135deg,
      rgba(98, 206, 111, 0.5),
      rgba(105, 45, 196, 0.5)
    ),
    linear-gradient(225deg, rgba(218, 66, 47, 0.5), rgba(74, 89, 172, 0.5));

  perspective: 1200px;
  label {
    transform-style: preserve-3d;
    input {
      display: none;
      &:checked + .stage {
        transform: rotateX(60deg);
        &:before {
          background-color: rgba(59, 99, 116, 0.507);
          z-index: 1;
        }
        .content {
          h3,
          h5 {
            transform: translateZ(30px);
            opacity: 0;
          }
          h1 {
              transform: translateZ(20px);
          }
          .chart {
            .bar {
              &:nth-child(1) {
                transform: rotate(-60deg) translateZ(200px);
              }
              &:nth-child(2) {
                transform: rotate(-60deg) translateZ(100px);
              }
              &:nth-child(3) {
                transform: rotate(-60deg) translateZ(150px);
              }
              &:nth-child(4) {
                transform: rotate(-60deg) translateZ(240px);
              }
              &:nth-child(5) {
                transform: rotate(-60deg) translateZ(70px);
              }
              &:nth-child(6) {
                transform: rotate(-60deg) translateZ(70px);
              }
              &:nth-child(7) {
                transform: rotate(-45deg) translateZ(100px);
              }
            }
          }
        }
      }
    }
    .stage {
      transform-style: preserve-3d;
      width: 360px;
      height: 500px;
      background-color: rgb(45, 57, 63);
      background-image: url("./600x600.jpg");
      background-position: center;
      background-size: cover;

      transition: transform .3s;
      //   transform: rotateX(60deg);

      transform-origin: center center 100px;
      position: relative;
      border-radius: 15px;

      display: flex;
      justify-content: center;
      align-items: center;

      &:before,
      &:after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: block;
        //   background-color: red;
        border-radius: inherit;

        transform-style: preserve-3d;
      }
      &:before {
        background-color: rgba(196, 130, 75, 0.507);
        z-index: 1;
        transition: all .3s;
      }
      &:after {
        background-color: rgb(30, 37, 41);
        z-index: -1;
        transform: translateZ(-20px);
        box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.671);
      }
      .content {
        position: relative;
        z-index: 9;
        text-align: center;
        width: 80%;

        transform-style: preserve-3d;
        //   perspective: 500px;
        h3,
        h5,
        h1 {
          transition: all 0.3s;
          margin: 30px 0;
        }

        .chart {
          display: flex;
          justify-content: space-around;

          transform-style: preserve-3d;

          .bar {
            width: 20px;
            height: 20px;
            background-color: white;
            transform: rotate(-60deg) translateZ(0px);
            transition: transform .3s;

            transform-style: preserve-3d;
            //   perspective: 1500px;

            span {
              width: 200px;
              height: 100%;
              position: absolute;
              top: 0;
              right: 0;
              display: block;
              // background-color: rgb(86, 163, 187);
              background-image: linear-gradient(
                to left,
                rgb(238, 253, 253),
                rgb(86, 163, 187)
              );
              transform-origin: right center;
              transform: rotateY(-90deg) translateZ(20px);
              transform-style: preserve-3d;
              text-align: right;
              padding-right: 10px;
              line-height: 20px;

              &:before {
                content: "";
                position: absolute;
                left: 0;
                right: 0;
                width: 100%;
                height: 100%;
                display: block;
                //   background-color: green;
                background-image: linear-gradient(
                  to left,
                  rgb(202, 236, 236),
                  rgb(86, 163, 187)
                );
                transform: rotateX(90deg);
                transform-origin: bottom center;
              }
            }

            &:nth-child(1) {
              span {
                width: 200px;
              }
            }
            &:nth-child(2) {
              span {
                width: 100px;
              }
            }
            &:nth-child(3) {
              span {
                width: 150px;
              }
            }
            &:nth-child(4) {
              span {
                width: 240px;
              }
            }
            &:nth-child(5) {
              span {
                width: 70px;
              }
            }
            &:nth-child(6) {
              span {
                width: 70px;
              }
            }
            &:nth-child(7) {
              span {
                width: 100px;
              }
            }
          }
        }
        h1 {
        }
      }
    }
  }
}
